package com.party.poster.element;

import com.party.poster.AbstractPoster;
import com.party.poster.entity.Position;

import java.awt.*;

/**
 * 文本
 */
public class Text extends AbstractPoster {

    private String text;

    private Font font;

    private Color color;

    public Text(String text, int x, int y, Font font , Color color){
        this.text = text;
        this.position = new Position(x,y);
        this.font = font;
        this.color = color;
    }

    public String getText() {
        return text;
    }

    public Font getFont() {
        return font;
    }

    public Color getColor() {
        return color;
    }
}
